@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="bannerInfoForm">
            <input type="hidden" id="id" value="${cmsContent.id}">
            <input type="hidden" id="statusName" value="${cmsContent.status}">
            <input type="hidden" id="showAppIndexName" value="${cmsContent.showAppIndex}">


            <div class="row">
                <div class="col-sm-10 b-r">

                    <#input id="citySel" name="栏目" underline="true" readonly="readonly" hidden="channelId" hiddenValue="${cmsContent.channelId}" value="${channelName}"
                            clickFun="BannerInfoDlg.showDeptSelectTree(); return false;"
                            style="background-color: #ffffff !important;"/>
                            
                    <div id="appShow" style="display:none;">
					<#select id="showAppIndex" name="首页显示" underline="true" value="${cmsContent.showAppIndex}">
                        <option value=2>否</option>
                        <option value=1>是</option>
                    </#select>
					</div>


                    <#input id="title" name="标题" underline="true"  value="${cmsContent.title}"/>
                    <#textarea id="detail" name="内容" underline="true" value="${cmsContent.detail}"/>
                    <#avatar id="titleImg" name="图片" underline="true"  avatarImg="${cmsContent.titleImg}"/>


                    <input type="radio" name="radio" id="type1" value="产品详情页" />产品详情页
                    <input type="radio" name="radio" id="type2" value="自定义链接" />自定义链接

                    <div class="form-group">
                        <label class="col-sm-3 control-label">跳转链接</label>
                        <div class="col-sm-9">
                            <select id="url1" class="form-control" name="url1"  underline="true"/>
                            <input id="url2" class="form-control" name="url2" underline="true" value="${cmsContent.url}"/>
                        </div>
                    </div>

                    <!--<#input id="url" name="跳转链接" underline="true" />-->

                    <div class="form-group has-feedback has-error">
                        <div class="col-sm-9">
                            <input id="url" class="form-control" name="url" underline="true" type="hidden"  value="${cmsContent.url}"/><i class="form-control-feedback glyphicon glyphicon-remove" data-bv-icon-for="url" style="display: block;"></i>

                            <small class="help-block" data-bv-validator="notEmpty" data-bv-for="url" data-bv-result="INVALID" style="display: block;">请填写跳转链接</small><small class="help-block" data-bv-validator="stringLength" data-bv-for="url" data-bv-result="VALID" style="display: none;">最多100个字符</small></div>
                    </div>

                    <input id="linkState" class="form-control" name="linkState" underline="true" value="${cmsContent.linkState}" type="hidden" />
                    <input id="productId" class="form-control" name="productId" underline="true" value="${cmsContent.productId}" type="hidden" />
                    <#input id="origin" name="排序" underline="true"  value="${cmsContent.origin}"/>

                    <#select id="status" name="是否显示" underline="true" value="${cmsContent.status}">
                        <option value=1>是</option>
                        <option value=2>否</option>
                    </#select>
					

                </div>
            </div>
            <!-- 这是部门选择的下拉框 -->
            <div id="menuContent" class="menuContent"
                 style="display: none; position: absolute; z-index: 200;">
                <ul id="treeDemo" class="ztree tree-box" style="width: 249px !important;"></ul>
            </div>

            <div class="progress progress-striped" id="progressTipArea" style="margin-top: 20px;">
                <div id="progressBar" style="width: 0%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" role="progressbar" class="progress-bar progress-bar-info">
                </div>
            </div>
            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="BannerInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="BannerInfoDlg.close()"/>
                </div>
            </div>

        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/cms/banner/banner_info_edit.js"></script>
<script>
	window.onload = function(){
		if($('#channelId').val() == 152){
			$('#appShow').show();
		}
	}

</script>
@}
